<% #endcoding:utf-8%>

    <li class="list-group-item demand"><span class="badge2 badge"><%=demand.offers.count%></span>
      <div class="avatar">
        <a data-author="true" data-name="Erick" href="/usercard/<%=demand.user_id%>">
          <%=raw avatar User.find(demand.user_id),'img-rounded img-normal'%></a>
      </div>

      <div class="demand-info">
        <div class="timeago">
          <span class="timeago">需求</span>
          <%=getname(demand.user_id)%>
          ·
          于 <abbr class="timeago" title="<%=demand.created_at%>"><%= time_ago_in_words(demand.created_at) %>之前</abbr>发布
          ·
          阅读(<%=demand.read_num%>)
          <%if demand.status==4%>
              <% if  !demand.evaluated %>
                  <span><%=link_to "写评价",new_evaluate_path+"?demand_id="+demand.id.to_s%></span>
              <%else%>
                  <span class="overday">已评价</span>
              <%end%>
          <%end%>
        </div>
        <h3><p class="title"><%=link_to demand.projects,demand_path(demand)%></p></h3>
      </div>
    </li>

